package cn.faster.sys.mapper;

import cn.faster.sys.entity.SysUserRoleCenter;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 用户角色中间表 Mapper 接口
 * </p>
 *
 * @author xiaoCoder
 * @since 2021-06-10
 */

@Mapper
public interface SysUserRoleCenterMapper extends BaseMapper<SysUserRoleCenter> {

   /**
	* 根据id查询UserRoleCenter
	*/
	SysUserRoleCenter getUserRoleCenterById(@Param(value = "id") Integer id) throws Exception;

	/**
	* 查询UserRoleCenter列表
	*/
	List<SysUserRoleCenter> listUserRoleCenter(Map<String, Object> map) throws Exception;


	/**
	* 新增UserRoleCenter
	*/
	Integer addUserRoleCenter(SysUserRoleCenter sysUserRoleCenter) throws Exception;

	/**
	* 更新UserRoleCenter
	*/
	Integer updateUserRoleCenter(SysUserRoleCenter sysUserRoleCenter) throws Exception;

	/**
	* 根据id物理删除UserRoleCenter
	*/
	Integer deleteUserRoleCenterById(@Param(value = "id") Integer id)	throws Exception;

	/**
	* 根据id逻辑删除UserRoleCenter
	*/
	Integer removeUserRoleCenterById(@Param(value = "id") Integer id)	throws Exception;
}
